﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InterValometer
{
    class Sequence
    {
        public Sequence()
        {
            this.UID = -1;
            this.PreDelay = 1;
            this.ExposureDuration = 1;
            this.NumberOfExposures = 1;
            this.FrameDelay = 1;
            this.ISOSpeed = "100";
            this.BulbMode = 0;
        }

        public Sequence(int seq_uid, int seq_pre_del, int seq_exp_dur, int seq_num_exp,
            int seq_frm_del, string seq_iso_spd, int seq_blb_mod)
        {
            this.UID = seq_uid;
            this.PreDelay = seq_pre_del;
            this.ExposureDuration = seq_exp_dur;
            this.NumberOfExposures = seq_num_exp;
            this.FrameDelay = seq_frm_del;
            this.ISOSpeed = seq_iso_spd;
            this.BulbMode = seq_blb_mod;
        }

        public override string ToString()
        {
            return "UID=" + this.UID + ", Pre Delay=" + this.PreDelay + ", Exposure Duration=" + this.ExposureDuration + ", # of Exposres=" + this.NumberOfExposures + ", Frame Delay=" + this.FrameDelay + ", ISO Speed=" + this.ISOSpeed + ", Bulb Mode=" + this.BulbMode;
        }

        public int UID { get; set; }
        public int PreDelay { get; set; }
        public int ExposureDuration { get; set; }
        public int NumberOfExposures { get; set; }
        public int FrameDelay { get; set; }
        public string ISOSpeed { get; set; }
        public int BulbMode { get; set; }
    }
}
